<?php
/**
 * Liste aller Google Domains
 *
 * @author		Joachim Ruf
 * @copyright	Copyright (c) 2003-2013 Loresoft Software (http://www.loresoft.de)
 * @license		http://yapary.loresoft.de/lizenzbedingungen     New BSD License
 *
 * */

Class Yapary_Webservice_Google_GoogleDomain Extends Yapary_XmlLoader
{
    private $arrData = array();
    private $xml = NULL;


    function __construct ($xmlFilePath)
    {
		if (!file_exists($xmlFilePath)) {
		    trigger_error('XML-File <b>'.$xmlFilePath.'</b > does not exist', E_USER_WARNING);
		}

        $this->xml = $this->getFromFile($xmlFilePath);
        $this->arrData = (array) $this->xml;
    }


    public function getArray ()
    {
        if (!isset($this->arrData['value'])) {
            return array();
        }

        return $this->arrData['value'];
    }

}


?>